mergeInto(LibraryManager.library, 
{
    Log: function (str, isErr) {
       str = Pointer_stringify(str)
       if (isErr) {
           console.error(str);
       } else {
           console.log(str);
       }
    },
    IsMobile: function() {
        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
            return true;
        } else {
            return false;
        }
    },
    GameInstance:function() {
        return GameGlobal.manager.gameInstance;
    }
});